﻿@model CardInChina.Data.Entity.Entity.Card
@{
    Layout = "~/Views/Shared/_Layout.cshtml";
}
<div class="e_box">
    <div class="ui-icons form_ordering">
    </div>
    <div class="e_box_mc">
        @if (Model.OnSale)
        {
            using (Html.BeginForm("Deal", "Purchase"))
            {
            @Html.AntiForgeryToken()
            <div class="b-box b-box_border">
                <div class="mt">
                    基本信息</div>
                <div class="mc">
                    <table>
                        <tbody>
                            <tr>
                                <td class="p-img">
                                    <input type="hidden" value="@Model.CardID" name="OrderCardID" />
                                    <img src="/content/images/photo/@Model.Photo" alt="" />
                                </td>
                                <td>
                                    <ul class="p-name">
                                        <li>卡名称：<span>
                                            @Html.ActionLink(Model.CardMemo, "Index", "CardDetail", new { cardKey = ViewBag.Class1Key }, null)
                                        </span></li>
                                        <li>面额：&nbsp;&nbsp;<span>@Model.Miane</span></li>
                                        <li>价格：&nbsp;&nbsp;<span class="p-price">@Model.Price @ViewBag.CurrencyName</span></li>
                                        @if (ViewBag.IsVIP)
                                        {
                                            <li>VIP价格（您的价格）：&nbsp;&nbsp;<span class="p-price">@Model.VIPPrice @ViewBag.CurrencyName</span></li>
                                        }
                                    </ul>
                                </td>
                            </tr>
                        </tbody>
                    </table>
                </div>
            </div>
            <div class="b-box">
                <div class="mt">
                    购买信息</div>
                <div class="mc mc_Pleft">
                    <div class="item1">
                        重要提示：请不要使用他人信用卡付款！信用卡借给他人使用将导致信用卡被吊销！</div>
                    <div class="item1">
                        如果您未能收到E-mail发来的卡信息，请到
                        @Html.ActionLink("我的订单", "Order", "Customer", new { ordertype = "tobepaid" }, null)
                        中查询！请注意看订单的状态和工作人员发给你的备注信息。</div>
                </div>
                <div class="mc">
                    <div class="item">
                        发送电子邮件至：&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type="text" name="UserSetEmail"
                        value="@ViewBag.Email" class="text1" /></div>
                    @Html.OrderForm(Model)
                    <div class="item">
                        备注：<textarea name="CustomerMemo" rows="4" cols="30"></textarea></div>
                    <div class="item">
                        购买数量：
                        <select name="Amount">
                            <option value="1" selected="selected">1</option>
                            <option value="2">2</option>
                            <option value="3">3</option>
                            <option value="4">4</option>
                            <option value="5">5</option>
                            <option value="6">6</option>
                            <option value="7">7</option>
                            <option value="8">8</option>
                            <option value="9">9</option>
                            <option value="10">10</option>
                        </select>
                    </div>
                    <div class="item">
                        随机码： &nbsp;&nbsp;<input name="ValidateCode" class="validatecode" id="validatecode"
                            type="text" />
                        9944
                    </div>
                    <div class="item">
                        积分支付：<input type="checkbox" name="checkbox_Integral" value="checkbox" />$0.10</div>
                    <div class="item">
                        红包支付：<input type="checkbox" name="checkbox_Red" value="checkbox" />$0.90</div>
                    <div class="item">
                        <b>支付金额：</b><span class="price" id="tatleprice">$18.30</span><!--支付金额--></div>
                    <div class="item">
                        <input id="btnSubmit" type="submit" value="提交订单" class="btnSubmit ui-icons" /></div>
                </div>
            </div>
            }
        }
        else
        {
            <div class="b-box b-box_border">
                <div class="mc">
                    <h2>
                        此卡停止销售!</h2>
                </div>
            </div>
        }
    </div>
</div>
